package com.example.oa;

public class TokenUtil {
    public static String getSalt(){
        char[] chars = new char[10];
        for (int i = 0; i < 10; i++) {
//            chars[i] = (char)(Math.random() * 26+97);
            chars[i] = (char)(Math.random() * (127-32)+32); //[32,126] 的随机字符
        }
        return new String(chars);
    }
}
